<template>
	<view class="contact">
		<image class="img" src="http://www.itcast.cn/2018czydz/images/gywmban.jpg"></image>
	<view class="info">
		<view @click="phone">联系电话:188-8888-8888 (点击拨打)</view>
		<view>联系地址:************</view>
		<map class="map" :scale="scale" :longitude="longitude" :latitude="latitude" :markers="markers"></map>
	</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				longitude:118.235707,
				latitude:39.629904,
				scale:14,
				markers:[{
					longitude:118.235707,
					latitude:39.629904,
					iconPath:'../../static/icon/home-active.png',
					width:50,
					height:50
				}]
			}
		},
		methods: {
			phone(){
				uni.makePhoneCall({
					phoneNumber:'15081515277'
				})
			}
		}
	}
</script>

<style lang="scss">
.contact{
	.img{
		width: 750rpx;
		height: 320rpx;
	}
	.info{
		padding: 10rpx 20rpx;
		font-size: 30rpx;
		view{
			line-height: 80rpx;
			border-bottom: 1px solid #eee;
			
		}
	}
	.map{
		width: 750rpx;
		height: 750rpx;
	}
}
</style>
